#!/bin/sh
#set target script format from dos to unix

dir1="$HOME/bin"
target1=(zxstart zxstop zxtool2)

for((i=0; i < ${#target1[*]}; ++i )); do
    full_name="$dir1"/${target1[i]}
    if [ -f "$full_name" ]; then
        dos2unix "$full_name" 
        chmod u+x "$full_name"
    fi
done
